package pso.gui.icons;

import java.awt.Image;
import java.net.URL;

import javax.imageio.ImageIO;

public class IconLoader {

	public static Image getIcon(String name) {
		URL resource = IconLoader.class.getResource(name);
		Image imageIcon;
		try {
			imageIcon = ImageIO.read(resource);
			return imageIcon;
		} catch (Exception ignore) {
		}
		return null;
	}
}
